import request from '@/utils/request-danmu'


// 获取章节和课时
export const getDanmu = params => {
    return request({
        method: 'GET',
        url: '/danmu/find',
        params
    })
}

// 新增或更新章节
export const setDanmu = (params, data) => {
    return request({
        method: 'POST',
        url: '/danmu/update/',
        params,
        data
    })
}